package cn.wolfcode.p2p.base.service;

        import cn.wolfcode.p2p.base.domain.LoginInfo;

        import java.util.List;

public interface ILoginInfoService {
    //测试
    int insert(LoginInfo record);

    /**
     * 注册
     * @param username 用户名即手机号
     * @param confirmPwd 手机验证码
     * @param password 密码
     * @param verifycode 确认密码
     * @return
     */
    void register(String username, String confirmPwd, String password, String verifycode);

    boolean existUsername(String username);

    void login(LoginInfo loginInfo, int userType);

    List<LoginInfo> listAll();

}
